package types

import "mall/app/product/cmd/rpc/pb"

type SeckillSkuRedisTo struct {
	Id                 int64                 `json:"id"`
	PromotionId        int64                 `json:"promotion_id"`
	PromotionSessionId int64                 `json:"promotion_session_id"`
	SkuId              int64                 `json:"sku_id"`
	SeckillPrice       float64               `json:"seckill_price"`
	SeckillCount       float64               `json:"seckill_count"`
	SeckillLimit       float64               `json:"seckill_limit"`
	SeckillSort        int64                 `json:"seckill_sort"`
	SkuInfo            pb.GetProductInfoResp `json:"sku_info"`
	StartTime          int64                 `json:"start_time"`
	EndTime            int64                 `json:"end_time"`
	RandomCode         string                `json:"random_code"`
}

type SeckillOrderTo struct {
	OrderId            int64 `json:"order_id"`
	PromotionSessionId int64 `json:"promotion_session_id"`
	SkuId              int64 `json:"sku_id"`
	Num                int   `json:"num"`
	UserId             int64 `json:"user_id"`
}
